package com.luhui.commons.net;

/**
 * Created with LXD
 *
 * @author:Luhui
 * @qq:729913162
 * @Date:2018-08-22
 * @Time:14:58
 */
public interface WebActive {

    Response get(Request request) throws RequestException;

    Response post(Request request) throws RequestException;

    default Response get(String url){
        return get(new Request(url));
    }

    default Response post(String url){
        return post(new Request(url));
    }

    default Response get(String url,String cookie){
        return get(new Request(url,cookie));
    }

    default Response post(String url,String cookie){
        return post(new Request(url,cookie));
    }
}
